Skip to content

Conversation

Priyanshu1303d
Copy link
Contributor

@Priyanshu1303d Priyanshu1303d commented Oct 6, 2025

This pull request adds an implementation for the Flattening a Multilevel Linked List.

The problem involves a linked list where each node has a next pointer and a child pointer. The child pointer points to a separate, sorted linked list. This algorithm recursively merges these lists into a single, fully sorted list connected by the child pointers.


  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted correctly.

This submission includes:
FlattenMultilevelLinkedList.java: The core implementation.
FlattenMultilevelLinkedListTest.java: A corresponding set of unit tests to ensure correctness.

All local tests pass successfully.

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.64%. Comparing base (61fbb18) to head (9db533b).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6670      +/-   ##
============================================
+ Coverage     76.60%   76.64%   +0.03%     
- Complexity     6026     6033       +7     
============================================
  Files           719      720       +1     
  Lines         20326    20347      +21     
  Branches       3937     3939       +2     
============================================
+ Hits          15571    15594      +23     
+ Misses         4164     4163       -1     
+ Partials        591      590       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Priyanshu1303d Priyanshu1303d force-pushed the feat/FlattenMultilevelLinkedList branch 3 times, most recently from a25b4c1 to 9db533b Compare October 10, 2025 07:23
@Priyanshu1303d Priyanshu1303d force-pushed the feat/FlattenMultilevelLinkedList branch from 9db533b to 3139a0a Compare October 10, 2025 16:54
@Priyanshu1303d
Copy link
Contributor Author

Hello @alxkm @yanglbme @DenizAltunkapan , would it be possible to get a review when you have a chance on this pr ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants